/**   
* @Title: IndexController.java
* @Package org.xaoyaoyao.cloud.job.controller
* @Description: TODO
* @author xaoyaoyao
* @date 2018年9月7日 下午1:44:05
* @version V1.0   
*/
package org.xaoyaoyao.cloud.job.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: IndexController
 * @Description: TODO
 * @author xaoyaoyao
 * @date 2018年9月7日 下午1:44:05
 * 
 */
@Controller
public class IndexController {
	
	@RequestMapping("/")
	public String index() {
		return "main";
	}

	@RequestMapping("{url}.shtml")
	public String page(@PathVariable("url") String url) {
		return url;
	}

	@RequestMapping("{module}/{url}.shtml")
	public String page(@PathVariable("module") String module, @PathVariable("url") String url) {
		return module + "/" + url;
	}
}
